<?php
    apf_require_class("PageHelper");
    $img_path = '/img/home/';
    ?>
<!--startprint-->
    <div class="warn" id="warn">为了不影响打印效果，请使用firefox等高版本浏览器！</div>
<div class="container3">
    <div><img src="<?=PageHelper::pure_static_url($img_path . "logo_1.png");?>" class="logo"></div>
    <div>
        <img src="<?=PageHelper::pure_static_url($img_path . "logo_2.png");?>" class="title">
    </div>
    <div class="sub">
        <span>姓名：<?=$info['name']?></span>
        <span>部门：<?=$info['department']?></span>
        <span>职位：<?=$info['position']?></span>
        <span>入职时间：<?=date('Y-m-d',strtotime($info['enter_date']))?></span>
        <span>最后工作日：<?=date('Y-m-d',strtotime($info['last_date']))?></span>
    </div>
    <table class="tb" border="0" cellpadding="0" cellspacing="0">
        <colgroup>
            <col width="10%">
            <col width="80%">
            <col width="10%">
        </colgroup>
        <tr height="40px">
            <td>部门</td>
            <td>办理事项</td>
            <td>经办人</td>
        </tr>
        <tr height="70px">
            <td>工作交接</td>
            <td class="tabS"><?=htmlspecialchars($info['handoff_desc'])?></td>
            <td>
            <?=$info['user_list'][Const_Flow::PHASE_31]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_31]['operate_time']))?></td>
        </tr>
        <tr height="100px">
            <td>直属上级</td>
            <td class="tabS_1" style="line-height: 22px">
                <ul>
                    <li><div class="tb_li">工作交接人：</div><div class="tb_li_d"><?=$info['handoff_user_name']?></div></li>
                    <li><div class="tb_li">交接完成：</div><div class="tb_li_d"><?=$info['superior_re_opinion']?></div></li>
                    <li><div class="tb_li">备注：</div><div class="tb_li_d"><?=htmlspecialchars($info['handoff_re_desc'])?></div></li>
                </ul>
            </td>
            <td>
            <?=$info['user_list'][Const_Flow::PHASE_32]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_32]['operate_time']))?>
            </td>
        </tr>
        <tr height="120px">
            <td>财务部</td>
            <td class="tabS_1" style="line-height: 22px">
                <ul>
                    <li><div class="tb_li">未结清款项：</div><div class="tb_li_d">&nbsp;<?=$info['uncleared_type']?>&nbsp;&nbsp;<?=$info['uncleared_text']?>&nbsp;&nbsp;金额:<?=$info['uncleared_money']?></div></li>
                    <li><div class="tb_li">未结清营销费用：</div><div class="tb_li_d">&nbsp;<?=$info['uncleared_type']?>&nbsp;&nbsp;<?=$info['uncleared_sale_text']?>&nbsp;&nbsp;金额:<?=$info['uncleared_sale_money']?></div></li>
                    <li><div class="tb_li">费用说明：</div><div class="tb_li_d">&nbsp;<?=htmlspecialchars($info['uncleared_desc'])?> </div></li>
                    <li><div class="tb_li">备注：</div><div class="tb_li_d">&nbsp;<?=htmlspecialchars($info['uncleared_bak'])?></div></li>
                </ul>
            </td>
            <td>
            <?=$info['user_list'][Const_Flow::PHASE_33]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_33]['operate_time']))?></td>
        </tr>
        <?php if($info['is_tech']):?>
        <tr height="70px">
            <td>技术部</td>
            <td class="tabS_1" style="line-height: 22px">
                <ul>
                    <li><div class="tb_li">书籍归还：</div><div class="tb_li_d"><?=$info['book_back']?></div></li>
                    <li><div class="tb_li">备注：</div><div class="tb_li_d"><?=htmlspecialchars($info['book_bak'])?></div></li>
                </ul>
            </td>
            <td>
            <?=$info['user_list'][Const_Flow::PHASE_34]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_34]['operate_time']))?></td>
        </tr>
        <?php endif;?>
        <tr height="70px">
            <td>IT部</td>
            <td class="tabS_1" style="line-height: 22px">
                <ul>
                    <li><div class="tb_li">关闭权限：</div><div class="tb_li_d"><?=$info['close_power']?></div></li>
                    <li><div class="tb_li">备注：</div><div class="tb_li_d"><?=htmlspecialchars($info['close_bak'])?></div></li>
                </ul>
            </td>
            <td><?=$info['user_list'][Const_Flow::PHASE_35]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_35]['operate_time']))?></td>
        </tr>
        <tr height="90px">
            <td>行政部</td>
            <td class="tabS_1" style="line-height: 22px">
                <ul>
                    <li><div class="tb_li">收回：</div><div class="tb_li_d"><?=$info['callback_equipment']?></div></li>
                    <li><div class="tb_li">备注：</div><div class="tb_li_d"><?=htmlspecialchars($info['callback_desc'])?></div></li>
                </ul>
            </td>
            <td><?=$info['user_list'][Const_Flow::PHASE_36]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_36]['operate_time']))?></td>
        </tr>
        <tr height="120px">
            <td>人力资源部</td>
            <td class="tabS_1" style="line-height: 22px">
                <ul>
                    <li><div class="tb_li">期权：</div><div class="tb_li_d"><?=$info['option']?></div></li>
                    <li><div class="tb_li">劳动手册：</div><div class="tb_li_d"><?=$info['work_book']?></div></li>
                    <li><div class="tb_li">已办理：</div><div class="tb_li_d"><?=$info['hr_checked']?></div></li>
                    <li><div class="tb_li">备注：</div><div class="tb_li_d"><?=htmlspecialchars($info['hr_bak'])?></div></li>
                </ul>
            </td>
            <td><?=$info['user_list'][Const_Flow::PHASE_37]['opt_user_name']?>
            <br>
            <?=date('Y-m-d',strtotime($info['user_list'][Const_Flow::PHASE_37]['operate_time']))?></td>
        </tr>
    </table>
    <div style="margin-top: 10px;">我确认上述离职相关手续已办理完成，即日起解除与公司的劳动关系。</div>
    <div align="right" style="margin-top: 15px;">员工签名：<input type="text" style="border: none;border-bottom: 1px dashed #000"></div>
    <div align="right">日<em style="margin-right: 2em"></em>期：<input type="text" style="border: none;border-bottom: 1px dashed #000"></div>
<!--endprint-->
    <div class="print" id="doPrint"></div>
</div>

<?php $this->script_block_begin(); ?>
<script type="text/javascript">
 /*   $('#doPrint').click(function(){
        bdhtml=window.document.body.innerHTML;
        sprnstr="<!--startprint-->";
        eprnstr="<!--endprint-->";
        prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
        prnhtml=prnhtml.substring(1,prnhtml.indexOf(eprnstr));
        window.document.body.innerHTML=prnhtml+'</div>';
        window.print();
        });*/
</script>
<?php $this->script_block_end(); ?>